import AppStore from "../store/appStore";
import axiosUtil from "../utils/axiosUtil";
import viewUtil from '../utils/viewUtil';
import {CreateHaoDanwangList} from "./modeCtr";

export function getLeftClassIfy() {
  return new Promise(resolve =>{
    var url = AppStore.data.taoBaoApi.super_classify.format(AppStore.data.taoBaoApi.haoDanKey)
    axiosUtil.get( url).then(res=>{
      // console.log(res)
      if (parseInt(res.code) !== 1){
        viewUtil.ShowToast('服务器错误～');
      }else{
        resolve(res.general_classify)
      }
    })
  } )
}
